package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.pojo.CacType;

import java.util.List;
import java.util.Map;


public interface CacTypeMapper {
    int deleteByPrimaryKey(Integer cacTypeId);

    int insert(CacType record);

    int insertSelective(CacType record);

    CacType selectByPrimaryKey(Integer cacTypeId);

    int updateByPrimaryKeySelective(CacType record);

    int updateByPrimaryKey(CacType record);

    /**
     * 查询CacType
     * author:liqian
     * date:2018-10-30 16:03
     */
    CacType selectByCacType(CacType cacType);

    /**
     * 根据homeId查询机构的所有类别及类别下的大项及大项下的小项
     * author:liqian
     * date:2018-10-31 16:18
     */
    List<CacType> selectShowAll(Integer homeId);

    /**
     * 根据类别id查询单个类别及类别下的大项及大项下的小项
     * author:liqian
     * date:2018-11-01 14:54
     */
    CacType selectOneById(Integer cacTypeId);
}